package com.woniuxy.provider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zhangyong
 * @Date 2021/8/2 0002
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Value("${server.port}") //获取当前项目的端口号
    private int port;

    @RequestMapping("/port")
    public int getPort(){
        return port;
    }
}
